package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.domain.db.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//用户详情
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    @Select("select id FROM  tb_user_info where nickname like #{userName}")
    List<Long> findByName(@Param("userName") String userName);
}